package com.ss.common;

public class MethodPath {

	private ClassPath classPath;
	
	private String methodDeclaration;


	public MethodPath() {
		super();
	}

	public MethodPath(ClassPath classPath, String methodDeclaration) {
		super();
		this.classPath = classPath;
		this.methodDeclaration = methodDeclaration;
	}

	public ClassPath getClassPath() {
		return classPath;
	}

	public void setClassPath(ClassPath classPath) {
		this.classPath = classPath;
	}

	public String getMethodDeclaration() {
		return methodDeclaration;
	}

	public void setMethodDeclaration(String methodDeclaration) {
		this.methodDeclaration = methodDeclaration;
	}

	@Override
	public String toString() {
		return this.classPath.toString()+"."+this.methodDeclaration;
	}

	@Override
	public boolean equals(Object obj) {
		if(this.toString().equals(obj.toString())){
			return true;
		}else{
			return false;
		}
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return this.classPath.hashCode()+this.methodDeclaration.hashCode();
	}
	
	
}
